﻿@model NewRen.Models.Plate
@{
    ViewBag.Title = "板块修改";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>板块修改</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a href="#">论坛管理</a>
            </li>
            <li>
                <a href="/Admin/Bbs/Forum">板块管理</a>
            </li>
            <li>
                <a href="#">板块修改</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>修改板块 <small><a href="/Admin/Bbs/Forum">板块管理</a></small></h5>
                </div>
                <div class="ibox-content">
                    <div class="ibox-content">
                        @using (Html.BeginForm("ForumEdit", "Bbs", FormMethod.Post, new { id = "frmForumEdit", @class = "form-horizontal", enctype = "multipart/form-data" }))
                        {
                            @Html.AntiForgeryToken()
                            <input type="hidden" value="@Model.ID" name="ID" />
                            <div class="form-group">
                                <label class="col-sm-2 control-label">板块名称</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" value="@Model.Title" name="Title">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">描述</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" value="@Model.Description"  name="Description">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">图片</label>
                                <div class="col-lg-10">
                                    <input type="file" name="file" id="file" class="form-control" /><span class="help-block m-b-none">（不上传请勿选择）</span>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">是否关闭</label>
                                <div class="col-lg-10">
                                    <select class="form-control" name="IsColse">
                                        <option value="false" @(Model.IsColse==false?"selected":"")>否</option>
                                        <option value="true" @(Model.IsColse==true?"selected":"")>是</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-white" type="reset">重置</button>
                                </div>
                                <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

